#@adminLayout()
#define main()
<div class="card">
    #@cardAddOrEdit("区域信息管理 / "+(model?"修改":"新增"),"ciis/region")
</div>
#end

###需要编辑的字段，默认展示了所有，需自己删除多余内容
#define cardCol()
    <input type="hidden" name="region.id" value="#(model.id??)">
    <div class="col-sm-6">
        <div class="form-group">
            <lable>企业</lable>
            <select name="region.eId" class="select2" >
                <option>请选择企业信息</option>
                #for(x:enterpriseList)
                <option value="#(x.id)" #(model.eId??==x.id?"selected":"")>#(x.name)</option>
                #end
            </select>
            <i class="form-group__bar"></i>
        </div>
    </div>
    <div class="col-sm-6">
        <div class="form-group">
            <lable>名称</lable>
            <input type="text" class="form-control" name="region.name" value="#(model.name??)"
                   placeholder="请输入名称">
            <i class="form-group__bar"></i>
        </div>
    </div>
#end